import Mock from "mockjs";

import dynamic from "./dynamic.json";
import starusers from "./starusers.json";

// mock会在vue脚手架启动开发服务器中加入拦截请求功能
// 拦截 /mock/getBanners 请求，返回模拟数据
Mock.mock("/mock/dynamic", "get", {
  code: 200,
  message: "",
  ok: true,
  data: dynamic,
});

Mock.mock("/mock/starusers", "get", {
  code: 200,
  message: "",
  ok: true,
  data: starusers,
});
